package com.example.spring.aop.tx.xml.service.impl;

import com.example.spring.aop.tx.xml.dao.AccountDao;
import com.example.spring.aop.tx.xml.service.AccountService;

public class AccountServiceImpl implements AccountService {

    private AccountDao accountDao;

    public void setAccountDao(AccountDao accountDao) {
        this.accountDao = accountDao;
    }

    @Override
    public void transfer(String outer, String inner, int money) {
        accountDao.out(outer, money);
        int i = 1/0;
        accountDao.in(inner, money);
    }
}
